<body>
  <div *ngIf="zfzt==true">
    <div class="weui-cell">
      <div class="weui-cell__bd">
        <p>就诊人</p>
      </div>
      <div class="weui-cell__ft black">{{scanname}}</div>
    </div>
    <div>
      <div class="weui-cells weui-cells_checkbox scan-patient-content">

        <label *ngFor="let out of yjflist;let i=index" (click)="yjfscanoutpatientpayinfo(i)">

          <!-- <div class="weui-cell__hd">
          <input type="checkbox" class="weui-check"><!-- (change)="check($event,i)" 
          <i class="weui-icon-checked"></i>
        </div> -->

          <label class="weui-cell weui-check__label weui-cell_access">
            <div class="weui-cell__bd">
              <p>{{out.YZLX}}&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{{doctorname}}&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                <span>已缴费</span>
              </p>
              <p class="scan_time">{{outpatienttime}}</p>
            </div>
            <div *ngIf="out.WJF == 0" class="weui-cell__ft red">{{out.TOTAL}}元</div>
            <div *ngIf="out.WJF == 1" class="weui-cell__ft">{{out.TOTAL}}元</div>
          </label>

        </label>
        <label *ngFor="let out of wjflist;let i=index" (click)="wjfscanoutpatientpayinfo(i)">

          <!-- <div class="weui-cell__hd">
        <input type="checkbox" class="weui-check"><!-- (change)="check($event,i)" 
        <i class="weui-icon-checked"></i>
      </div> -->

          <label class="weui-cell weui-check__label weui-cell_access">
            <div class="weui-cell__bd">
              <p>{{out.YZLX}}&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{{doctorname}}&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                <span style="color:red">未缴费</span>
              </p>
              <p class="scan_time">{{outpatienttime}}</p>
            </div>
            <div *ngIf="out.WJF == 0" class="weui-cell__ft red">{{out.TOTAL}}元</div>
            <div *ngIf="out.WJF == 1" class="weui-cell__ft">{{out.TOTAL}}元</div>
          </label>

        </label>
        <div class="weui-cell">
          <div class="weui-cell__bd">
          </div>
          <div *ngIf="wj!=0" class="weui-cell__ft">未缴合计：{{wj}}元</div>
          <div *ngIf="wj==0"></div>
        </div>


        <!-- <label class="weui-cell weui-check__label weui-cell_access">
        <div class="weui-cell__hd">
          <input type="checkbox" class="weui-check" name="all" id="all" [checked]="checkedall()" (change)="checkall($event)">
          <i class="weui-icon-checked"></i>
        </div>
        <div class="weui-cell__bd">
          <p>全选</p>
        </div>
        <div class="weui-cell__ft allcost">36元</div>
      </label> -->
      </div>
    </div>
    <div class="scan_btn">
      <div *ngIf="type==0">
        <button class="btn" weui-button (click)="pay()">交费</button>

      </div>
      <div *ngIf="type==1">
        <button class="btn" weui-button weui-loading>支付中...</button>
      </div>
      <div *ngIf="type==2">
        <button class="btn" weui-button disabled>交费</button>
      </div>

      <div *ngIf="type==3">
        <button class="btn" weui-button (click)="close()">关闭</button>
      </div>
    </div>
  </div>
  <div *ngIf="zfzt==false">
    <div class="tishi">
      <div class="icon-box">
        <i class="weui-icon-info weui-icon_msg"></i>
        <div class="icon-box__ctn">
          <h3 class="icon-box__title jiange">未查询到门诊待交费记录</h3>
          <p class="icon-box__desc">您可以重新尝试扫码</p>
        </div>
      </div>
    </div>
  </div>
  <weui-toast #lll [type]="'loading'"></weui-toast>
  <weui-toast #jiaoflonding [type]="'loading'" [text]="'医院处理中...'"></weui-toast>


</body>